using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(LevelDesigner))]
public class RuleTileEditor : Editor
{
    private LevelDesigner ruleTile;

    private void OnEnable()
    {
        ruleTile = target as LevelDesigner;
    }

    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();

        if (GUILayout.Button("SetRule")) 
        {
            ruleTile.SetRuleTile();
        }

        if (GUILayout.Button("SetDecoration"))
        {
            ruleTile.SetDecoration();
        }

        if (GUILayout.Button("ClearLevel"))
        {
            ruleTile.Clear();
        }
    }
}


